//
//  AWDiscussionNoticeMessage.h
//  AtWork2
//
//  Created by lucas on 15/6/29.
//  Copyright (c) 2015年 Foreveross. All rights reserved.
//

#import "AWNoticeMessage.h"

/**
 *  讨论组操作类型。
 */
typedef NS_ENUM(NSUInteger, AWDiscussionNoticeMessageOperation) {
    
    /** 创建讨论组 */
    AWDiscussionNoticeMessageOperationCreated = 1,
    
    /** 解散讨论组 */
    AWDiscussionNoticeMessageOperationDismissed,
    
    /** 讨论组资料修改 */
    AWDiscussionNoticeMessageOperationProfileChanged,
    
    /** 讨论组设置修改 */
    AWDiscussionNoticeMessageOperationSettingChanged,
    
    /** 讨论组成员加入 */
    AWDiscussionNoticeMessageOperationMemberJoined,
    
    /** 踢除讨论组 */
    AWDiscussionNoticeMessageOperationMemberKicked,
    
    /** 讨论组退出 */
    AWDiscussionNoticeMessageOperationMemberLeaved,
    
    /** 名称修改 */
    AWDiscussionNoticeMessageOperationNameChanged
};

/**
 *  讨论组通知。
 */
@interface AWDiscussionNoticeMessage : AWNoticeMessage

@property (nonatomic, assign) AWDiscussionNoticeMessageOperation operation;

/** 操作人 */
@property (nonatomic, copy) NSString *noticeOperator;

/** 群成员 */
@property (nonatomic, strong) NSArray *members;

@property (nonatomic, strong, readonly) NSDictionary *moreInfo;

/** 最新的群主 */
@property (nonatomic, copy, getter=owner) NSString *owner;

@end
